package com.dapeng.cleardatabackend.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author dapeng
 * @description 用户状态枚举
 * @date 2024/12/8 11:31
 */
@Getter
@AllArgsConstructor
public enum UserStatusEnum implements BaseEnum {

    NORMAL(0, "正常"),
    ABNORMAL(-1, "禁用");

    @JsonValue
    @EnumValue
    private final Integer code;
    private final String name;

    private static final long serialVersionUID = 1L;
}
